<?php 
	class m_game extends spModel
	{
	  public $pk = "id"; // 
	  public $table = "game"; // 数据表的名称
	  var $linker = array(
		'template'=>array(
					'type' => 'hasone',   // 一对多关联
					'map' => 'template',    // 关联的标识
					'mapkey' => 'temple_id', 
					'fclass' => 'm_temple',
					'fkey' => 'id',
					'field' => '',
					'condition'=> '',
					'enabled' => true,
				),
		);
	}
?>